package com.stendahls.groupbot;

import com.google.wave.api.RobotMessageBundle;

/**
 *
 */
public class HelpCommand extends AbstractCommand {

    public void perform(RobotMessageBundle robotMessageBundle) {

        String availableCommands;

        availableCommands = "Available commands: \n";
        for(String command : CommandFactory.getAvailableCommands()) {
            availableCommands += CommandFactory.COMMAND_PREFIX + command + "\n";

        }

        robotMessageBundle.getWavelet().appendBlip().getDocument().append(availableCommands);
    }
}
